/*
「少女前线」跨服（安卓 端 → iOS服）
*/

let url = $request.url;
let headers = $request.headers;
let body = $request.body;

url = url.replace(/gfcn-transit\.gw\.sunborngame\.com/,"gfcn-transit.ios.sunborngame.com");
headers['Host'] = 'gfcn-transit.ios.sunborngame.com';
body = body.replace(/channel=cn_mica/,"channel=cn_appstore").replace(/device=adr/,"device=ios").replace(/platformChannelId=GWGW/,"platformChannelId=ios");

$done({
	url: url,
	headers: headers,
	body: body
});